{if $MODULES->check('newsletter', 'create')}
<div style="text-align:center">
	<a href="{uri args="newsletter/create"}">{lang values="newsletter|create"}</a>
</div>
<hr />
{/if}
{if $categories}
<div class="news">
	<div class="headline">
{if $MODULES->check('feeds', 'list')}
		<a href="{uri args="feeds/list/feed_news"}" title="{lang values="news|read_newsfeed"}" style="float:left"><img src="{$DESIGN_PATH}images/feed.png" alt="" /></a>
{/if}
		<form action="{uri args="news/list"}" method="post" style="text-align:right">
			<div>
				<label for="cat" style="font-weight:bold">
					{lang values="common|category"}:
					<select name="form[cat]" id="cat">
						<option value="">{lang values="common|pls_select"}</option>
{foreach from=$categories item=row}
						<option value="{$row.id}"{$row.selected}>{$row.name}</option>
{/foreach}
					</select>
				</label>
				<input type="submit" name="submit" value="{lang values="common|submit"}" class="form" />
			</div>
		</form>
	</div>
</div>
<hr />
{/if}
{if $news}
{$pagination}
{foreach from=$news item=row}
<div class="news">
	<h3 class="headline">{$row.headline}</h3>
	<div class="date">
{if $row.allow_comments}
		<div class="comments">
			<a href="{uri args="news/details/id_`$row.id`"}#comments">{lang values="comments|comments"}</a>
			<span>({$row.comments_count})</span>
		</div>
{/if}
		{$row.date}
	</div>
	<div class="content">
		{$row.text}
	</div>
</div>
<hr />
{/foreach}
{else}
<div class="error">
	<h5>{lang values="common|no_entries"}</h5>
</div>
{/if}